package com.boarsoft.boar.code.svc.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.boarsoft.bean.ReplyInfo;
import com.boarsoft.boar.code.svc.biz.MethodParamInfoBiz;

@RestController
@RequestMapping(value = "/method/param")
public class MethodParamAction {
	@Autowired
	private MethodParamInfoBiz methodParamInfoBiz;

	/**
	 *
	 * @param methodId 方法id
	 * @param pageNo	分页起始号
	 * @param pageSize 页数
	 * @return	方法参数列表
	 */
	@RequestMapping(value = "/list.do")
	// @Authorized(code = "com.list")
	public ReplyInfo<Object> list(String methodId, int pageNo, int pageSize) {
		return new ReplyInfo<Object>(true, methodParamInfoBiz.list(methodId, pageNo, pageSize));
	}
}
